import request from '@/utils/request'

// 查询收付款单明细列表
export function listPaymentItem(query) {
  return request({
    url: '/settle/paymentItem/list',
    method: 'post',
    data: query
  })
}

// 查询收付款单明细详细
export function getPaymentItem(id) {
  return request({
    url: '/settle/paymentItem/' + id,
    method: 'get'
  })
}

// 新增收付款单明细
export function addPaymentItem(data) {
  return request({
    url: '/settle/paymentItem/add',
    method: 'post',
    data: data
  })
}

// 修改收付款单明细
export function updatePaymentItem(data) {
  return request({
    url: '/settle/paymentItem/update',
    method: 'post',
    data: data
  })
}

// 删除收付款单明细
export function delPaymentItem(id) {
  return request({
    url: '/settle/paymentItem/delete/' + id,
    method: 'post'
  })
}
